import 'package:flutter/material.dart';

import 'color_data.dart';

extension ColorDataExt on ThemeData {
  /// 对应主题颜色数据
  ColorData get colorData => extension<ColorData>()!;
}

extension ColorDataContextExt on BuildContext {
  /// 对应主题颜色数据
  ColorData get colorData => Theme.of(this).colorData;
}